//
//  AirplaneManager.h
//  EasyToo
//
//  Created by zhengzhe on 13-8-25.
//
//

#import <Foundation/Foundation.h>
#import "ServerCommunicationDelegate.h"
#import "AirPlaceInfo.h"


@protocol AirplaneManagerDelegate <NSObject>

//查询机票
- (void)qryPlainInfo:(BOOL)isSuccess
             AirInfo:(AirPlaceInfo*)airInfo;

//购买机票
- (void)buyAirTicket:(BOOL)isSuccess
                  tn:(NSString*)tn;

@end



@interface AirplaneManager : NSObject <ServerCommunicationDelegate>

@property (nonatomic, assign) id<AirplaneManagerDelegate> delegate;

+ (AirplaneManager*)shareManager;

//查询机票
- (void)searchAirTicket:(NSString*)fromCity
                 toCity:(NSString*)toCity
                flyTime:(NSString*)flyTime;


//购买机票
- (void)buyAirTicket:(OrderAirInfo*)orderInfo
           userArray:(NSMutableArray*)userArray
           startData:(NSString*)startData;


@end
